package com.hejx.security.dto;

import com.hejx.security.pojo.Resource;
import com.hejx.security.pojo.Role;

import java.util.List;

/**
 * Created by 追风少年
 * 在线用户
 * @email doubihah@foxmail.com
 * @create 2017/12/27 13:53
 **/
public class OnlineUser {

    private String username;
    private List<Role> roles;
    private List<Resource> resources;

    public OnlineUser(String username, List<Role> roles, List<Resource> resources) {
        this.username = username;
        this.roles = roles;
        this.resources = resources;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Resource> getResources() {
        return resources;
    }

    public void setResources(List<Resource> resources) {
        this.resources = resources;
    }
}
